<?php include TMPL_PATH.'public/header.phtml';?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='javascript:;' class="on"><em>欺诈信息列表</em></a><span>|</span><a href="<?php echo U('order/order_cheat_edit');?>"><em>添加欺诈信息</em></a>
    </div>
</div>
<div class="bk"></div>
<div class="pad_10">
<div class="table-list">
    <table width="100%" cellspacing="0" >
        <thead>
            <tr>
            <th width="150"><a href="javascript:sortTable('postalcode','<?php echo $sort_by=='ASC' ? 'DESC':'ASC'?>')">邮编<?php if($order_by=='postalcode')echo "<img src='../Public/images/sort_".strtolower($sort_by).".gif'>"; ?></a></th>
            <th align='left' width="250"><a href="javascript:sortTable('email','<?php echo $sort_by=='ASC' ? 'DESC':'ASC'?>')">电子邮件<?php if($order_by=='email')echo "<img src='../Public/images/sort_".strtolower($sort_by).".gif'>"; ?></a></th>
            <th align='left' width="300"><a href="javascript:sortTable('address','<?php echo $sort_by=='ASC' ? 'DESC':'ASC'?>')">地址<?php if($order_by=='address')echo "<img src='../Public/images/sort_".strtolower($sort_by).".gif'>"; ?></a></th>
            <th align='left' width="200"><a href="javascript:sortTable('phone','<?php echo $sort_by=='ASC' ? 'DESC':'ASC'?>')">电话<?php if($order_by=='phone')echo "<img src='../Public/images/sort_".strtolower($sort_by).".gif'>"; ?></a></th>
						<th>管理操作</th>
            </tr>
        </thead>
    <tbody>
    <?php
   	if(isset($cheatList) && $cheatList):
   		foreach ($cheatList as $v):
   ?>
			<tr>
				<td align='center'><?php echo $v['postalcode'];?></td>
				<td><?php echo $v['email']?></td>
					<td><?php echo $v['address']?></td>
					<td><?php echo $v['phone'];?></td>
					<td align='center'> 
					<a href="<?php echo U('order/order_cheat_edit', 'chid='.$v['id']);?>">查看</a>	&nbsp;&nbsp;|&nbsp;&nbsp;<a href="javascript:confirmurl('<?php echo U('order/order_cheat_delete', 'chid='.$v['id']);?>','确认要删除 吗？')">删除</a>
					</td>
				</tr>
	<?php 
		endforeach;
		endif;
	?>
   </tbody>
    </table>
<div id="pages"><?php echo $pageShow;?></div>
</div>
</div>
</body>
</html>
<script type="text/javascript">
function postalcode_order(order)
{			
	window.location.href='<?php echo U('order/order_cheat_list');?>&order='+order; 
}
</script>